<?php if($hasCurrentProductMaker == 1){?>
<div class="list_maker_title">
            Các hãng sản xuất đã có của danh mục -  <?php echo $categoryName;?>
</div>
<table cellpadding="0" cellspacing="0" width="100%" class="list_maker">
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <tr>
        <?php $i= 1; foreach ($aryCurrentProductMaker as $key => $value) {?>
            <td>
                <div>
                    <?php echo $value['product_maker_name'];?>
                </div>
                <div>
                    <img src="/public/images/upload/thumbnail/<?php echo $value['product_maker_main_logo'];?>">
                </div>
            </td>
            <?php if($i%5 == 0) {?>
                </tr><tr>
            <?php } ?>
        <?php $i++; } ?>
    </tr>
<?php }else{ ?>
    <div class="list_maker_title">
            Danh mục <?php echo $categoryName;?> chưa có hãng sản xuất nào.
</div>
<?php }?>
</table>


<?php if($hasOtherProductMaker == 1) {?>
<div class="list_maker_title">
            Chọn thêm hãng sản xuất nếu có trong danh sách
</div>
<table cellpadding="0" cellspacing="0" width="100%" class="list_maker">
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <tr>
        
        <?php $n = 1; foreach ($aryOtherProductMaker as $key => $value) {?>
        <td>
            <label class="cpointer" for="other_maker_<?php echo $n;?>">
                <input type="checkbox" name="other_product_maker[]" id="other_maker_<?php echo $n;?>" value="<?php echo $value['product_maker_id'];?>" ><?php echo $value['product_maker_name'];?><br>
                <img src="/public/images/upload/thumbnail/<?php echo $value['product_maker_main_logo'];?>">
            </label>
        </td>
        
            <?php if($n % 5 == 0){?>
                </tr><tr>
            <?php } ?>

        <?php $n++; } ?>
    </tr>
</table>
<?php }?>

